package com.sumainfor.wx.system.feign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.fallback.FeignEpcFallback;
import com.sumainfor.wx.system.fallback.FeignMarketFallback;
import com.sumainfor.wx.system.feign.EpcFeign.EpcFeign;
import com.sumainfor.wx.system.feign.MarketFeign.MarketFeign;
import feign.Feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: meng
 * @Date: 2019/1/18 15:59
 * @Description:
 */
@FeignClient(name = "TANGNEST-PC-EPC", fallback = FeignEpcFallback.class)
public interface BaseFeignEpc extends EpcFeign {

    /**
     *租赁顾问签约的时候查询房源的配置列表 公共区域
     */
    @PostMapping("/housekeeper/HoHousingPlan/getHoRdHouConListPublic")
    JsonResult getHoRdHouConListPublic(@RequestBody Map<String,Object> params);


    /**
     *租赁顾问签约的时候查询房源的配置列表 房间 or 房源
     */
    @PostMapping("/housekeeper/HoHousingPlan/getHoRdHouConList")
    JsonResult getHoRdHouConList(@RequestBody Map<String,Object>params);

    /**
     *市场部签合同的时候查询房间智能电表的设备编号
     */
    @PostMapping("/housekeeper/HoHousingPlan/getHoRdInteHpiList")
    JsonResult getHoRdInteHpiList(@RequestBody Map<String,Object>params);


    /**
     *租赁顾问签约的时候查询房源的装修计划预计完成时间
     */
    @GetMapping("/housekeeper/HoDecoratePi/getHoDpiPredictTime")
    JsonResult getHoDpiPredictTime(@RequestParam Map<String,Object> params);
}
